using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Xml;
using System.Diagnostics.CodeAnalysis;
using Safira.Spome.WebServices.Types;

namespace Safira.Spome.WebServices.Messages
{
    public class LoadSiteRequest
    {
        private string _url;

        /// <summary>
        /// Gets or sets the URL.
        /// </summary>
        /// <value>The URL.</value>
        [System.Diagnostics.CodeAnalysis.SuppressMessage( "Microsoft.Design", "CA1056:UriPropertiesShouldNotBeStrings" )]
        public string Url
        {
            get { return _url; }
            set { _url = value; }
        }
    }

    public class LoadSiteResponse
    {
        private SharepointSite _site;
        private bool _success;
        private string _trace;

        /// <summary>
        /// Gets or sets the trace.
        /// </summary>
        /// <value>The trace.</value>
        public string Trace
        {
            get { return _trace; }
            set { _trace = value; }
        }

        /// <summary>
        /// Gets or sets the site.
        /// </summary>
        /// <value>The site.</value>
        public SharepointSite Site
        {
            get { return _site; }
            set { _site = value; }
        }

        /// <summary>
        /// Gets or sets a value indicating whether this <see cref="LoadSiteResponse"/> is success.
        /// </summary>
        /// <value><c>true</c> if success; otherwise, <c>false</c>.</value>
        public bool Success
        {
            get { return _success; }
            set { _success = value; }
        }
    }
}
